Packaging Powershell via MEM/Intune - Win32 engine.

2021, Jun 02

This is quick how to for creating powershell packages for MEM/Intune using the Win32 App packaging tool for the Win32 engine

For this example I will be using the desktop shortcut script powershell script from Nicola Suter.

1). Download the powershell from nicolonsky tech

(tech.nicolonsky.ch)

2). Download the Win32 App packaging tool (This changes the files to .intunewin app format) from this GitHub -

(intunewin GitHub )

Download the app packaging tool as Zip File

Incoming Connector

3). Unzip the contents of the Win32 App packaging tool to a handy location ie.. C:\IntunePacker

Incoming Connector

4). The command we need to run is IntuneWinAppUtil.exe but we need to setup a "source folder" a "source setup file" and a "output folder"

Incoming Connector

5). Setup the following so we can run the command.

"Source folder: C:\IntunePacker\Source\DesktopShortCutScript"

"Setup file: CreateShortcut.ps1" (in source folder)

"Output folder: C:\IntunePacker\Output\DesktopShortCutScript"

Incoming Connector

I have renamed my Intune App folder to make it easier to type so mine is ContentPrep

6). Run the IntuneWinAppUtil.exe with the following switchs -

Incoming Connector

Incoming Connector

7). Once the program has run The resulting file is a .intunewin. located in the output folder (keep this safe)

Incoming Connector

At this point, the source files are ready for Intune